/*
 * @Author: 来自火星的码农 15122322+heyzhi@user.noreply.gitee.com
 * @Date: 2025-08-22 05:38:59
 * @LastEditors: 来自火星的码农 15122322+heyzhi@user.noreply.gitee.com
 * @LastEditTime: 2025-10-03 14:00:08
 * @FilePath: /GateServer/src/Cserver.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma  once
#include <boost/asio.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/beast/http.hpp>
#include <memory>
#include"../util/global.h"
namespace Yizhi{
    
   
    class CServer:public std::enable_shared_from_this<CServer>{
        public:
        CServer(boost::asio::io_context &,unsigned short &port);
        void Start();
        private:
        tcp::acceptor m_acceptor;
        net::io_context &m_ioctx;
        tcp::socket m_socket;
    };
}
